Ext.define('Usws.view.channel.ChannelVideoAdd', {
    extend: 'Ext.grid.Panel',
    xtype: 'ChannelVideoAdd-Grid',
    store: 'ChannelVideoAdd',
    selType:'checkboxmodel',
    multiSelect:true,
    layout:'column',
    autoScroll: true,
    initComponent: function () {
    	this.tbar = [
    	            	 {
           	            	 xtype: 'panel',
           	            	 layout:'column',
           	            	 border:false,
           	            	 items:[
           	            	     {
    							     xtype: 'form',
    							     layout: 'hbox',
    							  	 border:false,
    							  	 id:'searchVideoForm',
    							  	 items:[
    										{
    											   xtype:'hiddenfield',
    											   name:'channelUid',
    											   id:'channelUid'
    										  }
    							  	       ]
        	            	        },
           	            	        {
           								  xtype: 'panel',
           	    	       	              border:false,
           	    	       	              layout:'hbox',
           	    	       	              items:[
           	    	       	            	      {xtype: 'button', text: '添加视频',  action: 'add', margin: '0 10 0 0'}
           	    	       	            	    ]
           							    }
           	            	       ]
    	            	 }
    	            ];
        this.columns = [
			   {
					 text : '名称', 
					 width : '40%', 
					 sortable : true, 
					 dataIndex: 'name', 
					 hidden: false
				}
				,{
					 text : '类型', 
					 width : '20%', 
					 sortable : true, 
					 dataIndex: 'videoTypeName', 
					 hidden: false
				}
				,{text : '标签', width : '18%', sortable : true, dataIndex: 'tags', hidden: false}
				,{text : '审核状态', width : '18%', sortable : true, dataIndex: 'authStatus', hidden: false}
            ];
        this.bbar= {
            xtype: 'pagingtoolbar',
            store: 'ChannelVideoAdd',
            pageSize: 16,
            displayInfo: true,
            firstText:'首页',
            prevText:'上一页',
            nextText:'下一页',
            beforePageText:'第',
            afterPageText:'共  {0} 页',
            displayMsg: '显示第 {0} 条到 {1} 条记录，一共 {2} 条', 
            emptyMsg: "没有记录",
            refreshText:'刷新',
            lastText:'未页'
        };
        this.callParent();
    }
});